/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package stis.statpro.ibs.view;

import java.awt.event.ActionListener;

/**
 *
 * @author habib <imamhabibpamungkas@gmail.com>
 */
public class PanelMenu extends javax.swing.JPanel {

    
    /**
     * Creates new form PanelMenu
     */
    public PanelMenu() {
        initComponents();
    }
    public void addAclionListenerInsert(ActionListener l){
        buttonInsertData.addActionListener(l);
    }
    
    public void addAclionListenerModify(ActionListener l){
        buttonModifyData.addActionListener(l);
    }
    
    public void addAclionListenerDelete(ActionListener l){
        buttonDeleteData.addActionListener(l);
    }
    
    public void addAclionListenerView(ActionListener l){
        buttonViewData.addActionListener(l);
    }
    
    public void addAclionListenerMonitor(ActionListener l){
        buttonMonitor.addActionListener(l);
    }
    
    public void addAclionListenerChart(ActionListener l){
        buttonChart.addActionListener(l);
    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        buttonInsertData = new stis.statpro.ibs.widget.WidgetButton();
        buttonModifyData = new stis.statpro.ibs.widget.WidgetButton();
        buttonMonitor = new stis.statpro.ibs.widget.WidgetButton();
        buttonViewData = new stis.statpro.ibs.widget.WidgetButton();
        buttonChart = new stis.statpro.ibs.widget.WidgetButton();
        buttonDeleteData = new stis.statpro.ibs.widget.WidgetButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();

        setOpaque(false);
        setLayout(new java.awt.GridBagLayout());

        buttonInsertData.setBorder(null);
        buttonInsertData.setIcon(new javax.swing.ImageIcon(getClass().getResource("/stis/statpro/ibs/icon/insert.png"))); // NOI18N
        buttonInsertData.setToolTipText("Insert Data");
        buttonInsertData.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        buttonInsertData.setIconTextGap(50);
        buttonInsertData.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonInsertDataActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 20;
        gridBagConstraints.ipady = 20;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_START;
        gridBagConstraints.insets = new java.awt.Insets(13, 13, 13, 13);
        add(buttonInsertData, gridBagConstraints);

        buttonModifyData.setIcon(new javax.swing.ImageIcon(getClass().getResource("/stis/statpro/ibs/icon/update.png"))); // NOI18N
        buttonModifyData.setMaximumSize(new java.awt.Dimension(128, 128));
        buttonModifyData.setMinimumSize(new java.awt.Dimension(128, 128));
        buttonModifyData.setPreferredSize(new java.awt.Dimension(128, 128));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 20;
        gridBagConstraints.ipady = 20;
        gridBagConstraints.insets = new java.awt.Insets(13, 13, 13, 13);
        add(buttonModifyData, gridBagConstraints);

        buttonMonitor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/stis/statpro/ibs/icon/monitor.png"))); // NOI18N
        buttonMonitor.setMaximumSize(new java.awt.Dimension(128, 128));
        buttonMonitor.setMinimumSize(new java.awt.Dimension(128, 128));
        buttonMonitor.setPreferredSize(new java.awt.Dimension(128, 128));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.ipadx = 20;
        gridBagConstraints.ipady = 20;
        gridBagConstraints.insets = new java.awt.Insets(13, 13, 13, 13);
        add(buttonMonitor, gridBagConstraints);

        buttonViewData.setIcon(new javax.swing.ImageIcon(getClass().getResource("/stis/statpro/ibs/icon/view.png"))); // NOI18N
        buttonViewData.setMaximumSize(new java.awt.Dimension(128, 128));
        buttonViewData.setMinimumSize(new java.awt.Dimension(128, 128));
        buttonViewData.setPreferredSize(new java.awt.Dimension(128, 128));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 20;
        gridBagConstraints.ipady = 20;
        gridBagConstraints.insets = new java.awt.Insets(13, 13, 13, 13);
        add(buttonViewData, gridBagConstraints);

        buttonChart.setIcon(new javax.swing.ImageIcon(getClass().getResource("/stis/statpro/ibs/icon/Grafik.png"))); // NOI18N
        buttonChart.setMaximumSize(new java.awt.Dimension(128, 128));
        buttonChart.setMinimumSize(new java.awt.Dimension(128, 128));
        buttonChart.setPreferredSize(new java.awt.Dimension(128, 128));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 20;
        gridBagConstraints.ipady = 20;
        gridBagConstraints.insets = new java.awt.Insets(13, 13, 13, 13);
        add(buttonChart, gridBagConstraints);

        buttonDeleteData.setIcon(new javax.swing.ImageIcon(getClass().getResource("/stis/statpro/ibs/icon/delete.png"))); // NOI18N
        buttonDeleteData.setMaximumSize(new java.awt.Dimension(128, 128));
        buttonDeleteData.setMinimumSize(new java.awt.Dimension(128, 128));
        buttonDeleteData.setPreferredSize(new java.awt.Dimension(128, 128));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.ipadx = 20;
        gridBagConstraints.ipady = 20;
        gridBagConstraints.insets = new java.awt.Insets(14, 14, 14, 14);
        add(buttonDeleteData, gridBagConstraints);

        jLabel1.setFont(new java.awt.Font("Cooper Black", 2, 14)); // NOI18N
        jLabel1.setText("Insert Data");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_END;
        add(jLabel1, gridBagConstraints);

        jLabel3.setFont(new java.awt.Font("Cooper Black", 2, 14)); // NOI18N
        jLabel3.setText("View Data");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_END;
        add(jLabel3, gridBagConstraints);

        jLabel4.setFont(new java.awt.Font("Cooper Black", 2, 14)); // NOI18N
        jLabel4.setText("Modify Data");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_END;
        add(jLabel4, gridBagConstraints);

        jLabel5.setFont(new java.awt.Font("Cooper Black", 2, 14)); // NOI18N
        jLabel5.setText("Monitor Data");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_END;
        add(jLabel5, gridBagConstraints);

        jLabel7.setFont(new java.awt.Font("Cooper Black", 2, 14)); // NOI18N
        jLabel7.setText("Data dalam Grafik");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_END;
        add(jLabel7, gridBagConstraints);

        jLabel8.setFont(new java.awt.Font("Cooper Black", 2, 14)); // NOI18N
        jLabel8.setText("Delete Data");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.PAGE_END;
        add(jLabel8, gridBagConstraints);
    }// </editor-fold>//GEN-END:initComponents

    private void buttonInsertDataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonInsertDataActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_buttonInsertDataActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private stis.statpro.ibs.widget.WidgetButton buttonChart;
    private stis.statpro.ibs.widget.WidgetButton buttonDeleteData;
    private stis.statpro.ibs.widget.WidgetButton buttonInsertData;
    private stis.statpro.ibs.widget.WidgetButton buttonModifyData;
    private stis.statpro.ibs.widget.WidgetButton buttonMonitor;
    private stis.statpro.ibs.widget.WidgetButton buttonViewData;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    // End of variables declaration//GEN-END:variables
}
